<?php
session_start();
$login = $_SESSION['login'];
$privilegio = $_SESSION['privilegio'];
?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link href="/Esquina_da_TI/default.css" rel="stylesheet" type="text/css" media="screen" />
        <script src="js/jquery-1.3.2.js" type="text/javascript"></script>
        <script src="js/exibirPaginas.js" type="text/javascript"></script>
        <script src="js/tituloDinamico.js" type="text/javascript"></script>
        <title>Noticias</title>
    </head>
    <body>
        <?php

        echo"<div id='login'>";

        if (isset ($_SESSION['login'])) {
            echo "Seja Bem Vindo " . $_SESSION['privilegio'] ." - ". " <font color='red'>"  . $_SESSION['login'];
            echo " <div id='logoff'>";
            echo "</font><a href='/Esquina_da_TI/GUI/MinhaConta.php'><font color='yellow'>Minha Conta </font></a>
            "." - "."<a href='/Esquina_da_TI/GUI/logoff.php'><font color='yellow'> Logoff</font></a></div>";
        }else {
            echo"<form  method='POST' action='' >";
            echo" <table border='0' align='center'>";
            echo"<tr>";
            echo"<td>Login: <input type='text' name='login' value='' />";
            echo"&nbsp;&nbsp;&nbsp;&nbsp;Senha: <input type='password' name='senha' value='' />";
            echo"<input type='submit' value='Logar' /></td>";
            echo"</tr>";
            echo"<tr><td>Esqueceu seu acesso <a href='/Esquina_da_TI/GUI/RecuperaSenha.php'>Clique aqui!</a></td></tr>";
            echo"</table>";
            echo"</form>";
            echo " <div id='logoff'>";
            echo "</font><a><font color='white'>Olá Visitante</font></a>
            "." - "."<a href='/Esquina_da_TI/GUI/CadastroUsuario.php'><font color='yellow'>Cadastre-se</font></a></div>";
        }
        if ($errologin==1) {
            echo "<font color='red'>";
            echo "Usuario ou Senha Inválidos";
            echo "</font>";
        }

        echo "</div>";
        ?>
        <!--CABEÇALHO-->
        <div id="header">
            <div id="menu">
                <ul id="main">
                    <li><a href="index.php">&nbsp;<img src="/Esquina_da_TI/images/home.png" class="menu"/><br/>Home</a></li>
                    <li><a href="#">&nbsp;&nbsp;<img src="/Esquina_da_TI/images/forum.png" class="menu"/><br/>Fórum</a></li>
                    <li><a href="#">&nbsp;&nbsp;<img src="/Esquina_da_TI/images/noticia.png" class="menu"/><br/>Notícias</a></li>
                    <li><a href="#">&nbsp;<img src="/Esquina_da_TI/images/artigo.png" class="menu"/><br/>Artigos</a></li>
                    <li><a href="#">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="/Esquina_da_TI/images/download.png" class="menu"/><br/>Downloads</a></li>
                    <li><a href="#">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            &nbsp;&nbsp;<img src="/Esquina_da_TI/images/oportunidade.png" class="menu"/><br/>Oportunidades de Emprego</a></li>
                    <li><a a href="javascript:exibirFaleConosco()">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="/Esquina_da_TI/images/faleconosco.png" class="menu"/><br/>Fale Conosco</a></li>
                </ul>
            </div>
            <div id="logo">
                <h1><a href="#"><span>Esquina da T.I.</span></a></h1>
                <p>a Tecnologia a seu alcance</p>
            </div>
        </div>
        <div id="wrapper">
            <div id="page">
                
                <!--CONTEUDO DO CENTRO-->
                <div id="content">

                </div>

                </div>
                <!--BARRA DO RODAPÉ-->
                <div style="clear: both;">&nbsp;</div>
            </div>
        </div>

        <!--RODAPÉ-->
        <div id="footer">
            <p class="copyright">&copy;&nbsp;&nbsp;2009 All Rights Reserved &nbsp;&bull;&nbsp; Design by <a href="#">H1 Softwares</a>.</p>
            <p class="link"><a href="#">Privacy Policy</a>&nbsp;&#8226;&nbsp;<a href="#">Terms of Use</a></p>
        </div>
    </body>
</html>